package com.flyduck.mall.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.flyduck.mall.pms.domain.PmsSkuStock;
import org.apache.ibatis.annotations.Param;

/**
 * sku库存Mapper接口
 *
 * @author flyduck
 * @date 2025-01-18
 */
public interface PmsSkuStockMapper extends BaseMapper<PmsSkuStock> {
    int reduceStock(@Param("skuId") Long skuId, @Param("quantity") Integer quantity);

    int releaseStock(@Param("skuId") Long skuId, @Param("quantity") Integer quantity);
}
